﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Xml.XPath;
using System.Collections;
using System.Xml;
using log4net;

namespace OpelWelcomeScreenWeb.Models
{
    public class DBConfig : ConfigurationElement
    {
        protected static readonly ILog logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
        [ConfigurationProperty("sessionID", IsRequired = true)]
        public string sessionID
        {
            get { return (string)this["sessionID"]; }
            set { this["sessionID"] = value; }
        }
        
        [ConfigurationProperty("DMSDBName", IsRequired = true)]
        public string DMSDBName
        {
            get { return (string)this["DMSDBName"]; }
            set { this["DMSDBName"] = value; }
        }
        [ConfigurationProperty("WinAut", IsRequired = true)]
        public string WinAut
        {
            get { return (string)this["WinAut"]; }
            set { this["WinAut"] = value; }
        }
        [ConfigurationProperty("DMSUserName", IsRequired = false)]
        public string DMSUserName
        {
            get { return (string)this["DMSUserName"]; }
            set { this["DMSUserName"] = value; }
        }
        [ConfigurationProperty("DMSDBPass", IsRequired = false)]
        public string DMSDBPass
        {
            get { return (string)this["DMSDBPass"]; }
            set { this["DMSDBPass"] = value; }
        }
        [ConfigurationProperty("Site", IsRequired = false)]
        public string Site
        {
            get { return (string)this["Site"]; }
            set { this["Site"] = value; }
        }
        
    }
}
